from django.conf.urls.defaults import *
from django.views.generic.simple import direct_to_template
from gironimo.account.views import activate, register


urlpatterns = patterns('',
    url(r'^activate/complete/$', direct_to_template, {'template': 'account/activation_complete.html'}, name='account_activation_complete'),
    url(r'^activate/(?P<activation_key>\w+)/$', activate, {'backend': 'gironimo.account.backends.default.DefaultBackend'}, name='account_activate'),
    url(r'^register/$', register, {'backend': 'gironimo.account.backends.default.DefaultBackend'}, name='account_register'),
    url(r'^register/complete/$', direct_to_template, {'template': 'account/registration_complete.html'}, name='account_complete'),
    url(r'^register/closed/$', direct_to_template, {'template': 'account/registration_closed.html'}, name='account_disallowed'),
    url(r'^profile/edit/$', 'gironimo.account.views.profile_edit', name='account_profile_edit'),
    url(r'^profile/(?P<slug>[a-z0-9_-]+)/$', 'gironimo.account.views.show_profile', name='account_show_profile'),
    url(r'^profile/$', 'gironimo.account.views.profile', name='account_profile'),
    (r'', include('gironimo.account.auth_urls')),
)

